#pragma once
#include "GoogleAuth.h"

namespace GoogleProtocol
{

class CGoogleUserData
{
public:
	CGoogleUserData(void);
	~CGoogleUserData(void);

public:
	BOOL LoadUserData(void);
	int SaveUserData(void);

	LPCSTR GetUserName(void);
	LPCSTR GetUserPwd(void);
	LPCWSTR GetUniqueString(void);

	void SetUserName(LPCSTR lpUserName);
	void SetUserPwd(LPCSTR lpUserPwd);

	void SetAuthToken(const CGoogleAuth* pNewAuth);
	CGoogleAuth* GetAuthToken(void);
	BOOL GetProfilePath(LPSTR lpProfilePath);

private:
	wstring m_strUniqueString;
	string m_strUserName;
	string m_strUserPwd;
	CGoogleAuth m_GoogleAuth;
};

}